package com.hqyj.manager.service.serviceimpl;

import com.hqyj.manager.service.ProductService;
import com.hqyj.mapper.ProductMapper;
import com.hqyj.pojo.Product;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ProductServiceimpl implements ProductService {

    @Autowired
    private ProductMapper productMapper;

    @Override
    public List<Product> queryOrderProduct(Integer oId,String inputName) {
        List<Product> productList = productMapper.queryOrderProduct(oId,inputName);
        return productList;
    }

    @Override
    public Integer deleteProductsById(Integer productId) {
        Integer integer = productMapper.deleteProductsById(productId);
        return integer;
    }

}
